package com.furong.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration // 声明这是一个Spring配置类
@ComponentScan({"com.furong.service"}) // 指定要扫描的包的路径
@PropertySource("classpath:jdbc.properties") // 加载配置文件
@Import({JdbcConfig.class, MyBatisConfig.class}) // 导入其他配置类
@EnableTransactionManagement // 开启Spring事务
public class SpringConfig {
}
